<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>地址管理-{eyou:global name='web_name' /}</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
        <link href="{eyou:global name='web_cmspath'/}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        {eyou:static file="users/skin/css/element/index.css" /}
        {eyou:static file="users/skin/css/e-user.css" /}
        {eyou:include file="users/skin/css/diy_css.htm"/}
        {eyou:static file="/public/static/common/js/jquery.min.js"/}
        {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
        {eyou:static file="/public/static/common/js/tag_global.js"/}
        {eyou:static file="/public/static/common/js/mobile_global.js"/}
    </head>

    <body>
        <div class="ey-header-status">
            <div class="header-status-l">
                <input type="hidden" name="gourl" value="{$gourl|default=''}">
                <a href="{eyou:notempty name='$gourl'}{$gourl}{eyou:else /}javascript:history.go(-1);{/eyou:notempty}"><i class="el-icon-arrow-left"></i></a>
            </div> 
            <div class="header-status-m">收货地址</div> 
            <div class="header-status-r"></div>
        </div>
        <div class="h50"></div>

        <div class="ey-container">
            {eyou:spaddress id="addr" type='add'}
            <div class="address-con">
                <div {$addr.UlHtmlId}>
                {eyou:empty name="$addr.addressCount"}
                    <div class="el-row min-hg-c-180 flex flex-center">
                        <div class="tc mt-50">
                            <p class=""><img id='litpic_img' src="{eyou:static file='users/skin/images/null-data.png' /}"/></p>
                            <p class="fc9">当前暂无收货地址哦~</p>
                        </div>
                    </div>
                {eyou:else/}
                    {eyou:spaddress id="field" type="data"}
                    <div class="el-col el-col-24 address-item box bor-5">
                        <div class="address-item-top flex">
                            <div class="address-item-l" {$field.ul_il_id}>
                                <div class="txt-row">
                                    <span {$field.ConsigneeId}>{$field.consignee}</span>
                                    <span {$field.MobileId}>{$field.mobile}</span>
                                </div>
                                <div class="txt-row">
                                    <span {$field.InfoId}>{$field.Info}</span>
                                </div>
                                <div class="txt-row">
                                    <span class="info" {$field.AddressId}>{$field.address}</span>
                                </div>
                            </div>
                            <div class="address-item-r">
                                <span {$field.ShopEditAddr}><i class="el-icon-edit-outline"></i></span> 
                            </div>
                        </div>
                        <div class="address-item-bottom">
                            <div class="address-default">
                                <span>{eyou:eq name='$field.is_default' value='1'}默认地址{eyou:else/}设为默认{/eyou:eq}</span>
                                <div class="switch">
                                    <label class="switchCheck">
                                        <input class="checkbox" type="checkbox" name="is_default" value="1" {eyou:eq name='$field.is_default' value='1'} checked="checked" {/eyou:eq} {$field.SetDefault}>
                                        <i></i>
                                    </label>
                                </div>
                            </div>
                            <div class="address-btn">
                                <div class="delete" {$field.ShopDelAddr}><i class="el-icon-delete"></i></div>
                            </div>
                        </div>
                    </div>
                    {/eyou:spaddress}
                {/eyou:empty}
                </div>
            </div>
            <div class="h50"></div>
            <div class="public-btn"><a href="JavaScript:void(0);" {$addr.ShopAddAddr}>添加地址</a></div>
            {$addr.hidden}
            {/eyou:spaddress}
        </div>
    </body>
</html>